//index.js
//获取应用实例
var app = getApp();
var TraceDetailUrl = "orderExpressApi/traceDetail";
var orderId;
Page({
  data: {},
  onLoad: function (e) {
    console.log(e)
    orderId = e.orderid;
  },
  onShow: function () {
    var that = this;
    wx.request({
      url: app.globalData.requestUrl + TraceDetailUrl,
      header: {
        'content-type': 'application/json'
      },
      method: 'POST',
      data: {//这里写你要请求的参数
        userId: app.globalData.userId,
        orderId: orderId
      },
      success: function (res) {
        wx.hideLoading();
        //将获取到的json数据，
        console.log(res);//打印日志
  
      }
    })
  }
})
